﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="SuggestionList.aspx.cs" Inherits="SysManage.Module.CadreWork.SuggestionList" %>

<!DOCTYPE html>

<html>
<head runat="server">
    <title></title>
    <style type="text/css">
       
    </style>
</head>
<body>
    <form id="form1" runat="server">
        <f:PageManager ID="PageManager1" AutoSizePanelID="Panel1" runat="server"></f:PageManager>
        <f:Panel ID="Panel1" runat="server" BodyPadding="5px"
            ShowBorder="false" Layout="VBox" BoxConfigAlign="Stretch"
            BoxConfigPosition="Start" ShowHeader="false">
            <Items>
                <f:Form ID="Form2" runat="server" Height="36px" BodyPadding="5px" ShowHeader="false"
                    ShowBorder="false">
                    <Rows>
                        <f:FormRow ID="FormRow1" runat="server">
                            <Items>
                                <f:TwinTriggerBox ID="txtTitle" runat="server" EmptyText="请输入标题" LabelWidth="50px" LabelAlign="Right"
                                    Trigger1Icon="Clear" Trigger2Icon="Search" ShowTrigger1="false" Label="标题" OnTrigger2Click="txtTitle_Trigger2Click"
                                    OnTrigger1Click="txtTitle_Trigger1Click" MaxLength="20">
                                </f:TwinTriggerBox>
                                <%--<f:TriggerBoxPicker runat="server" ID="ppBranch" Label="所属组织" LabelWidth="70px" LabelAlign="Right"
                                    WindinsTitle="选择组织" WindinsHeight="450px" WindinsWidth="700px" ShowTrigger1="false" ShowEmptyLabel="true" EnableEdit="false"
                                    EmptyText="请选择组织" WindinsUrl="../../../Share/Picker/BranchSinglePicker.aspx" Trigger1Icon="Clear"
                                    OnTrigger1Click="ppBranch_Trigger1Click" AutoPostBack="true" OnTextChanged="ppBranch_TextChanged">
                                </f:TriggerBoxPicker>--%>
                            </Items>
                        </f:FormRow>
                    </Rows>
                </f:Form>
                <f:Grid ID="Grid1" runat="server" BoxFlex="1" ShowBorder="true" ShowHeader="false"
                    EnableCheckBoxSelect="true" DataKeyNames="ID" AllowSorting="true"
                    OnSort="Grid1_Sort" SortField="Title" SortDirection="DESC" AllowPaging="true"
                    IsDatabasePaging="true" OnPreDataBound="Grid1_PreDataBound" OnRowCommand="Grid1_RowCommand"
                    OnPageIndexChange="Grid1_PageIndexChange">
                    <Toolbars>
                        <f:Toolbar ID="Toolbar1" runat="server">
                            <Items>
                                <f:Button ID="btnDeleteSelected" Icon="Delete" runat="server" ConfirmText="确认要删除选中记录？" Text="删除选中记录" OnClick="btnDeleteSelected_Click">
                                </f:Button>
                                <f:ToolbarSeparator runat="server">
                                </f:ToolbarSeparator>
                                <f:ToolbarFill ID="ToolbarFill1" runat="server">
                                </f:ToolbarFill>
                            </Items>
                        </f:Toolbar>
                    </Toolbars>
                    <Columns>
                        <f:BoundField DataField="Title" SortField="Title" ExpandUnusedSpace="true" HeaderText="标题" />
                        <f:BoundField DataField="UserName" SortField="UserName" HeaderText="姓名" Width="100px" />
                        <f:BoundField DataField="ContactWay" SortField="ContactWay" HeaderText="联系方式" Width="120px" TextAlign="Center" />
                        <f:BoundField DataField="CreateTime" SortField="CreateTime" HeaderText="创建时间" Width="150px" TextAlign="Center" DataFormatString="{0:yyyy-MM-dd}" />
                        <f:BoundField DataField="StatusName" SortField="StatusName" HeaderText="已发布" Width="80px" TextAlign="Center" />
                        <f:WindowField ColumnID="editField" TextAlign="Center" Icon="Pencil" HeaderText="操作" ToolTip="回复评论" WindowID="Dialog"
                            Title="回复评论" DataIFrameUrlFields="ID" Width="50px"
                            DataIFrameUrlFormatString="SuggestionEdit.aspx?id={0}" />
                        <f:LinkButtonField ColumnID="deleteField" TextAlign="Center" HeaderText="删除" Icon="Delete" ToolTip="删除" ConfirmText="确定删除此记录？"
                            ConfirmTarget="Top" CommandName="Delete" Width="50px" />
                    </Columns>
                </f:Grid>
            </Items>
        </f:Panel>
        <f:Window ID="Dialog" CloseAction="Hide" runat="server" IsModal="true" Hidden="true" Target="Top"
            EnableResize="true" EnableMaximize="false" EnableIFrame="true" Width="650px" Height="410px" OnClose="Dialog_Close">
        </f:Window>
    </form>
</body>
</html>
